<template>
  <router-view></router-view>
  <!--
  <el-button type="primary" @click="handleLogin">登录</el-button>
  -->
</template>

<script setup>
 import requestUtil from '@/util/request'
 import store from '@/store'

 const handdlelogin = async  () => {
   let res = await requestUtil.post('api/user/login');
   let data = res.data;
   if (data.status == 200) {
     const token = data.message;
     console.log(token);
     store.commit('SET_TOKEN'.token);
   }else {
     console.log("登录失败");
   }
 }


</script>

<style>
html, body, #app{height: 100%;}
.app-container{padding: 20px}
</style>
